cmake_minimum_required(VERSION 3.8)
project(test_lifecycle)

# Default to C++14
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  add_compile_options(-Wall -Wextra -Wpedantic)
endif()

# find dependencies
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(std_msgs REQUIRED)
find_package(rclcpp_lifecycle REQUIRED)
find_package(rclcpp_action REQUIRED)
find_package(test_interfaces REQUIRED)
find_package(lifecycle_msgs REQUIRED)
find_package(OpenCV 4.4.0 QUIET)
find_package(Eigen3 REQUIRED)
find_package(test_utils REQUIRED)
find_package(message_filters REQUIRED)
find_package(sensor_msgs REQUIRED)

include_directories(
  include
)

add_executable(lc_server 
  src/lc_server.cpp
)
ament_target_dependencies(lc_server 
rclcpp rclcpp_action rclcpp_lifecycle lifecycle_msgs std_msgs message_filters sensor_msgs test_interfaces test_utils)

install(
  TARGETS lc_server
  DESTINATION lib/${PROJECT_NAME}/
)

ament_package()
